#!/bin/sh

CUR_DIR="$(pwd)"

#echo $CUR_DIR

#远程调试
#JAVA_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8008,server=y,suspend=n"

JAVA_CASSPATH="./*:$CUR_DIR/lib/*:"

JAVA_OPTS="-classpath $JAVA_CASSPATH $JAVA_DEBUG_OPTS -Dupgrade.log4j.path=$CUR_DIR/var/logs"

JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=utf-8"
java $JAVA_OPTS cn.uc.ucgc.community.upgrade.Main $@